﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace ApplicationOne
{
    class Program
    {
        static void Main(string[] args)
        {
            {
                Console.WriteLine("Start GC-demo");

                ForwardList<int> fli = new ForwardList<int>();
                fli.Add(10);
                fli.Add(20);
                fli.Add(30);
                GC.Collect(); //Tvingar GC att arbeta
                Console.WriteLine("GC-anrop, fli!=null");
                fli.Clear();
                Console.WriteLine("GC-anrop, fli==null");
                GC.Collect(); //Tvingar GC att arbeta
            }

        }

    }
}
